package myfuxi;
/*1+……+100;
 * */
public class Si
{
	public static void main(String[] args)
	{
		System.out.println("===");
		int t=1*2*3*4*5+1*2*3*4+1*2*3+1*2+1;
		System.out.println("=="+t);
		int s = 0;
		for(int i=1;i<=100;i++)
		{
			//System.out.println("=简单循环="+i);
			s=s+i;
		}
		System.out.println("=="+s);
		int y=1;
		for(int i=1;i<=5;i++)
		{
			/*5! 5的阶乘*/
			y=y*i;
		}
		System.out.println("=="+y);
		int n=0;
		int o=1;
		for(int i=1;i<=5;i++)
		{
			/*先算出阶乘*/
			o=o*i;
			/*在算出阶乘和*/
			n=n+o;
		}
		System.out.println(o+"=="+n);
	}
	
}
